﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using GBlog.Core.Service;
using System.Web;
using System.Configuration;

namespace GBlog.Core
{
    [HandleError(ExceptionType = typeof(HttpException), View = "Error")]
    public class GController : Controller
    {
        private readonly IServices _Services;
        public GController(IServices Services)
        {
            this._Services = Services;
        }

        public T Services<T>()
        {
            return _Services.Get<T>();
        }
    }
}